package com.one.square.user.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.one.square.core.entity.SysMenu;
import com.one.square.user.server.mapper.SysMenuMapper;
import com.one.square.user.server.service.SysMenuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cwm
 * @Description
 * @date 2021/10/21 下午12:52
 * @Version 1.0
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {

    @Override
    public List<SysMenu> findByRoleId(Long roleId) {
        return this.baseMapper.findByRoleId(roleId);
    }

    @Override
    public List<SysMenu> findByRoleIds(List<Long> roleIds) {
        return this.baseMapper.findByRoleIds(roleIds);
    }

    @Override
    public List<SysMenu> findByRoleCodes(List<String> roleCodes) {
        return this.baseMapper.findByRoleCodes(roleCodes);
    }
}
